/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bean;

import frames.SwingColumn;
import java.util.Objects;

/**
 *
 * @author Eletro Shopping
 */
public class Customer implements java.io.Serializable{
    
    private static final long serialVersionUID = 1L;
    
    @SwingColumn(description="Id",colorOfBackgound="")
    private Integer id;
    @SwingColumn(description="Name",colorOfBackgound="")
    private String name;
    @SwingColumn(description="Age",colorOfBackgound="")
    private int age;
    @SwingColumn(description="Address",colorOfBackgound="")
    private String address;
    @SwingColumn(description="Telephone",colorOfBackgound="")
    private String telephone;

    public Customer() {
    }

    public Customer(Integer id) {
        this.id = id;
    }

    public Customer(Integer id, String name, int age, String address, String telephone) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.address = address;
        this.telephone = telephone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Customer other = (Customer) obj;
        if (!Objects.equals(this.id, other.id)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 97 * hash + Objects.hashCode(this.id);
        return hash;
    }
    
    
}
